#!/usr/bin/env python
# encoding: utf-8 

import json,os
# cwd = os.getcwd()
# print os.getcwd()
# dirs = os.path.join( os.path.dirname(cwd))
# print dirs
# filename  =dirs+' API_Automation/actual_result/test_site_monitor/TestSiteMonitorSmoke/test_003_create_site_monitor_task_http.json'
# print filename
s = [{u'task_id': 687708}]
# fo = open(filename)
# fs = fo.read()
# fo.close()
print s
print s[0]['task_id']
# locations = json.loads(s) 
#注：read是json-py.py和minijson.py的方法，而python2.6开始自带的lib库里用的是simplejson.py，其没有read方法，而是load/loads
# print str(len(locations))
# for location in locations:
	
#     print locations[0]['task_id']
    
    
    
